//先引入mockjs模块
import Mock from 'mockjs';
//把JSON数据格式引入进来[JSON数据格式根本没有对外暴露，但是可以引入]
//webpack默认对外暴露的：图片、JSON数据格式
import banner from './banner.json';
import floor from './floor.json';
import userLogin from './userLogin.json'
import bgImages from './bgImages.json'
import papers from './papers.json'
import category from './category.json'
import picCategory from './picCategory.json'

//mock数据:第一个参数请求地址   第二个参数：请求数据
Mock.mock("/mock/banner", { code: 200, data: banner });//模拟首页大的轮播图的数据
Mock.mock("/mock/floor", { code: 200, data: floor });//模拟首页大的轮播图的数据
Mock.mock("/mock/userLogin", { code: 200, data: userLogin });//模拟登录用户的数据
Mock.mock("/mock/bgImages", { code: 200, data: bgImages });//模拟请求背景图片的数据
Mock.mock("/mock/papers", { code: 200, data: papers });//模拟请求文章的数据
Mock.mock("/mock/category", { code: 200, data: category });//模拟获取分类的数据
Mock.mock("/mock/picCategory", { code: 200, data: picCategory });//模拟获取图片分类的数据


